home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C/C++ Users Group Library 1996 July
/
C-C++ Users Group Library July 1996.iso
/
listings
/
v_09_03
/
9n03124a
< prev
next >
Wrap
Text File
|
1991-01-14
|
335b
|
26 lines
int
cmd_trap(action,list,count)
char *action; /* eval upon signal */
int *list; /* list of sigs */
int count; /* how many sigs */
{
int i;
for (i=0;i<count;i++,list++) {
actions[*list] = action;
signal(*list,sig_handler);
}
}
void
init_trap()
{
int i;
for (i=0;i<NSIG;i++) actions[i] = 0;
}